package power

import (
	"chinasoccer/models"
	"chinasoccer/pkg/app"
	"chinasoccer/pkg/e"

	"github.com/gin-gonic/gin"
)

func GetPower(c *gin.Context) {
	info, err := models.GetPower(c)
	if err != nil {
		app.Error(c, e.ERROR, err, err.Error())
		return
	}
	app.OK(c, info, "OK")
}

func GetAllPower(c *gin.Context) {
	info, err := models.GetAllPower(c)
	if err != nil {
		app.Error(c, e.ERROR, err, err.Error())
		return
	}
	app.OK(c, info, "OK")
}
